{block name="main"}
{if $icon}
<div class="text-box">
    <input type="{$type}" {$attr} id="{$elem_id}" class="layui-input {$class}" placeholder="请输入{$label}" name="{$field}" value="{$value}">
    <i class="{$icon}"></i>
</div>
{else/}
    <input type="{$type}" {$attr} id="{$elem_id}" class="layui-input {$class}" placeholder="请输入{$label}" name="{$field}" value="{$value}">
{/if}


{/block}
{block name="style"}{/block}
{block name="js"}{/block}
